---
apiVersion: v1
kind: Secret
metadata:
  name: hubble-ca-secret
  namespace: d8-{{ .Chart.Name }}
  {{ include "helm_lib_module_labels" (list . (dict "app" "hubble")) | nindent 2 }}
data:
  ca.crt: {{ $.Values.cniCilium.internal.hubble.certs.ca.cert | b64enc }}
  ca.key: {{ $.Values.cniCilium.internal.hubble.certs.ca.key | b64enc }}
---
apiVersion: v1
kind: Secret
metadata:
  name: hubble-server-certs
  namespace: d8-{{ .Chart.Name }}
  {{ include "helm_lib_module_labels" (list . (dict "app" "agent")) | nindent 2 }}
type: kubernetes.io/tls
data:
  ca.crt:  {{ $.Values.cniCilium.internal.hubble.certs.server.ca | b64enc }}
  tls.crt: {{ $.Values.cniCilium.internal.hubble.certs.server.cert | b64enc }}
  tls.key: {{ $.Values.cniCilium.internal.hubble.certs.server.key | b64enc }}
